package com.vitabuybuy.tv.dto;

import com.vitabuybuy.tv.utils.LanaugeUtils;

import java.util.List;

/**
 * 作者：SimGa
 * 日期：2020/12/29
 * 时间：15:43
 * 包名：com.vitabuybuy.tv.dto
 */
public class GroupBuyListDto {
    private int gainQuantity;
    /**
     * thumbnail : http://106.55.47.138/attachment/jpg/1359/759_13779.jpg
     * salePrice : 100.0
     * promotionPrice : 20.0
     * name : {"EN":"nikedunk","CN":"nikedunk","MA":"nikedunk"}
     * id : 61
     */

    private ProductBean product;
    private int salesQuantity;
    private int id;
    private String type;
    private boolean enabled;
    private String status;
    private int memberLimit;
    private int remainingTime;

    public int getGainQuantity() {
        return gainQuantity;
    }

    public void setGainQuantity(int gainQuantity) {
        this.gainQuantity = gainQuantity;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public int getSalesQuantity() {
        return salesQuantity;
    }

    public void setSalesQuantity(int salesQuantity) {
        this.salesQuantity = salesQuantity;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getMemberLimit() {
        return memberLimit;
    }

    public void setMemberLimit(int memberLimit) {
        this.memberLimit = memberLimit;
    }

    public int getRemainingTime() {
        return remainingTime;
    }

    public void setRemainingTime(int remainingTime) {
        this.remainingTime = remainingTime;
    }

    public static class ProductBean {
        private String thumbnail;
        private double salePrice;
        private double promotionPrice;
        private String name;
        private int id;

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public double getSalePrice() {
            return salePrice;
        }

        public void setSalePrice(double salePrice) {
            this.salePrice = salePrice;
        }

        public double getPromotionPrice() {
            return promotionPrice;
        }

        public void setPromotionPrice(double promotionPrice) {
            this.promotionPrice = promotionPrice;
        }

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }
}
